-
-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix array_intersect #1039
fix array_intersect #1039
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think _getSearchableAttributes
should be modified to always return an array. Also it should set the cached value to an empty array to avoid multiple redundant queries if it is called multiple times.
That's true. I updated my commit. |
Question about syntax ... i remember a PR from last days where short array syntax was reverted. Here we have |
…h_Model_Indexer_Fulltext::_getSearchableAttributes()
…h_Model_Indexer_Fulltext::_getSearchableAttributes()
When there is no searchable attributes.
2020-06-12T08:41:42+00:00 DEBUG (7): Exception message: Warning: array_intersect(): Expected parameter 1 to be an array, null given in app/code/core/Mage/CatalogSearch/Model/Indexer/Fulltext.php on line 305